<template>
  <div class="logOut">
    <button class="logOutBtn" @click="logOut">退出登录</button>
  </div>
</template>

<script>
export default {
  name: "logOut",
  methods: {
      logOut() {
          this.$router.push('/')
      }
  }
};
</script>

<style>
.logOut {
    display: flex;
    justify-content: center;
}
.logOutBtn {
  width: 300px;
  height: 40px;
  margin-top: 400px;
  background: #169bd5;
  color: #fff;
  border-radius: 4px;
}
</style>